using System;
using System.Collections.Generic;
using System.Configuration;

namespace DogBite.Dachshund.Configuration
{
    public class NavigationCollection : ConfigurationElementCollection
    {

        protected override ConfigurationElement CreateNewElement()
        {
            return new Navigation();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((Navigation)element).Name;
        }

        public Navigation this[int index]
        {
            get { return (Navigation)BaseGet(index); }
        }

        public new Navigation this[string name]
        {
            get { return (Navigation)BaseGet(name); }
        }
    }
}
